package main

import "fmt"

func main()  {

	a := 5

	switch a {
	default:
		fmt.Println("数据有误")
	case 1:
		fmt.Println("第一季度")
	case 2:
		fmt.Println("第二季度")
	case 3:
		fmt.Println("第三季度")
	case 4:
		fmt.Println("第四季度")
	}

	fmt.Println("over.....")


	//计算器
	var num1, num2 int
	var oper string
	fmt.Println("请输入一个整数:")
	fmt.Scanln(&num1)
	fmt.Println("请输入另一个整数")
	fmt.Scanln(&num2)
	fmt.Println("请输入操作运算符(+,-,*,/,%):")
	fmt.Scanln(&oper)


	fmt.Println(num1, num2, oper)

	switch oper {
	case "+" :
		fmt.Println(num1, " + ", num2, " = ", num1*num2)
	case "-" :
		fmt.Println(num1, " - ", num2, " = ", num1-num2)
	case "*" :
		fmt.Println(num1, " * ", num2, " = ", num1*num2)
	case "/" :
		fmt.Println(num1, " / ", num2, " = ", num1/num2)
	case "%" :
		fmt.Println(num1, " % ", num2, " = ", num1%num2)
	}







}













